package com.project.service.impl;

import com.project.bean.EmployeeBean;
import com.project.bean.ProcessBean;
import com.project.mapper.IProcessMapper;
import com.project.service.IProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;

@Service
@Transactional
public class ProcessServiceImpl implements IProcessService {
    @Autowired
    private IProcessMapper mapper;
    @Override
    public void finishProject(int processId) {
        mapper.finishProject(processId, LocalDate.now());

    }

    @Override
    public void addEP(ProcessBean processBean) {
        mapper.addEP(processBean);

    }


}
